package pojo;

import IOService.IOService;

public abstract class User {
    protected String name;

    protected IOService[] ioServices;

//    public String getName() {
//        return name;
//    }
//
//    public void setName(String name) {
//        this.name = name;
//    }



    public User(String name) {
        this.name=name;
    }
    public abstract int menu();

    public void doWork(int choice,CommodityList commodityList){
        this.ioServices[choice].work(commodityList);
    }
}



